﻿using OA.Core.Attribute;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OA.Model.Other
{
    public class MyCompare : IEqualityComparer<MySelectListItem>
    {
        public bool Equals(MySelectListItem x, MySelectListItem y)
        {
            return x.Value == y.Value;//可以自定义去重规则，此处将Id相同的就作为重复记录，不管学生的爱好是什么
        }
        public int GetHashCode(MySelectListItem obj)
        {
            return obj.Value.GetHashCode();
        }
    }


     

}
